package com.example.queryexpressdelivery_01.common;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.MutableLiveData;

import com.example.queryexpressdelivery_01.entity.TrackingResponse;

public class SharedViewModel extends ViewModel {
    private final MutableLiveData<TrackingResponse> trackingData = new MutableLiveData<>();

    public void setTrackingData(TrackingResponse data) {
        trackingData.setValue(data);
    }

    public LiveData<TrackingResponse> getTrackingData() {
        return trackingData;
    }
}
